# Maintainer: Willow Barraco <contact@willowbarraco.fr>
pkgname=hare-xkb
pkgver=0_git20231011
_commit=f26da188280caa8406d4d6345868f41021fdfdec
pkgrel=0
pkgdesc="Hare interface to the xkbcommon library"
url="https://git.sr.ht/~stacyharper/hare-xkb"
# Currently doesn't build on riscv64
arch="x86_64 aarch64" # hare
license="MPL-2.0"
makedepends="hare"
source="
	$pkgname-$_commit.tar.gz::https://git.sr.ht/~stacyharper/hare-xkb/archive/$_commit.tar.gz
"
builddir="$srcdir/$pkgname-$_commit"

build() {
	make -j1 PREFIX=/usr
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" PREFIX=/usr install
}

sha512sums="
9962b86e279892ce12e324fa8c68ffc5cbb3604ac153b787b1e27b4faf66b92411fc7d9dc27a27debd946f1eb9fbdfca6f711f803854872bd64ac772c5d5dd33  hare-xkb-f26da188280caa8406d4d6345868f41021fdfdec.tar.gz
"
